using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;

public class CategoryHandler {
	
	/*public CategoryProp[] CategoryProperties;
	Dictionary<string, Category> _categoryPage;
	static CategoryHandler instance;*/
	
	public string[] categories; 
	int chosenCategory;
	
	void Awake()
	{
		/*
		instance = this;
		_categoryPage = new Dictionary<string, Category>();
		
		for(int i = 0; i < CategoryProperties.Length; i++)
		{
			string _name = CategoryProperties[i].name;
			var type = Type.GetType(_name);
			var _category = (Category)Activator.CreateInstance(type);
			_categoryPage.Add(_name, _category);
		}*/
	}
	
	void OnGUI()
	{
		chosenCategory = GUILayout.SelectionGrid(chosenCategory, categories, 3);
	}
	
	/*
	public Category getCategory(string categoryName)
	{
		return _categoryPage[categoryName];
	}
	
	static public CategoryHandler Instance
	{
		get{return instance;}
	}*/
	
	
}
